package main

import (
	"fmt"
	_ "gdshop-back-end-go/client-api/boot"
	_ "gdshop-back-end-go/client-api/router"
	"github.com/gogf/gf/frame/g"
)

func main() {
	//initBanner()

	//fmt.Println("hello GF", gf.VERSION)
	//s := g.Server()

	//s.SetPort(8001)
	// 平滑重启，win不支持，先屏蔽掉
	//s.EnableAdmin()
	//s.Run()
	s := g.Server()
	err := s.Start()
	if err != nil {
		panic("启动失败" + err.Error())
		return
	}
	fmt.Println("路由总数量：", len(s.GetRouterArray()))
	g.Wait()
}
